package service;

import cn.itlaobing.exception.MyBusinessException;
import cn.itlaobing.model.UserModel;
import cn.itlaobing.service.UserService;
import org.junit.Assert;
import org.junit.Test;

/**
 * Created by lhb on 2017/11/2.
 */
public class UserServiceTset {
    private UserService userService=new UserService();
    @Test
    public void testUserService(){
        String username="admin123";
        String userpwd="123123";
        UserModel userModel=null;

        try {
            userModel=userService.login(username,userpwd);
        } catch (MyBusinessException e) {
            e.printStackTrace();
        }
        //断言用来测试判断用力是否通过
        //断言st不为空
        Assert.assertNotNull(userModel);
       // Assert.assertArrayEquals(username, toString().getBytes());
    }
}
